#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main() {
	int s;
	cin >> s;

	int ans = 0, cnt = 0;
	s = abs(s);

	while (s) {
		cnt++;
		ans += s % 10;
		s /= 10;
	}
	cout << (cnt ? cnt : 1) << " " << ans;
	return 0;
}
